package com.taa.feign;


import com.taa.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;

@FeignClient(name = "provider-service", path = "/cart")
public interface ProductFeignClient {
    @GetMapping("/products")
    List<Product> getProducts();
}


